#include "FileUtils.h"
using namespace std;

string* getFileContext(const char* fileName) {
	string* data = new string; 
	FILE* file = NULL;
	fopen_s(&file, fileName, "rb");

	if(!file) {
		return data;
	}

	char readBuffer[4096] = {};

	while(!feof(file)) {
		size_t len = fread(readBuffer, 1,sizeof(readBuffer), file);
		data->append(readBuffer, len);
	}
	fclose(file);
	return data;
}